import request from '@/utils/http'
const PATH = '/assistants/notice'

export function getNoticeMessages(data: any) {
	return request({
		url: PATH + '/getnotices',
		method: 'get',
		params: data
	})
}

export function getNoticeDetail(data: any) {
	return request({
		url: PATH + '/content',
		method: 'get',
		params: data
	})
}

export function removeNoticeMessages(data: any) {
	return request({
		url: PATH + '/removenotice',
		method: 'post',
		data
	})
}

export function readNotifications(data: any) {
	return request({
		url: PATH + '/markasread',
		method: 'post',
		data
	})
}

export function getUnreadCount(data: any) {
	return request({
		url: PATH + '/getunreadcount',
		method: 'get',
		params: data
	})
}

export function getMarqueeList(data: any) {
	return request({
		url: PATH + '/getmarquee',
		method: 'get',
		params: data
	})
}
